<!-- 核心群存栏统计表 -->
<template>
    <!-- 筛选条件 -->
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="时间">
            <el-date-picker
                v-model="formInline.date"
                type="daterange"
                range-separator="至"
                start-placeholder="开始时间"
                end-placeholder="结束时间"
                value-format="YYYY-MM-DD"
            />
        </el-form-item>

        <el-form-item label="企业列表">
            <el-select v-model="formInline.enterpriseList" placeholder="请选择企业">
                <el-option label="企业1" value="shanghai" />
                <el-option label="企业2" value="beijing" />
            </el-select>
        </el-form-item>

        <el-form-item>
            <el-button type="primary" icon="Download">导出</el-button>
        </el-form-item>
    </el-form>

    <!-- 表格 -->
    <el-table :data="tableData" stripe border style="width: 100%;">
        <el-table-column prop="cattleNum" label="序号" />
        <el-table-column prop="cattleNum" label="牛号" />
        <el-table-column prop="cattleNum" label="登记号" />
        <el-table-column prop="cattleNum" label="性别" />
        <el-table-column prop="cattleNum" label="出生日期" />
        <el-table-column prop="cattleNum" label="来源" />
        <el-table-column prop="cattleNum" label="备注" />
    </el-table>
</template>

<script setup>
import { reactive } from 'vue'

// 表单收集
const formInline = reactive({
    date: '',
    enterpriseList: '' // 企业列表
})

// 表格数据
const tableData = [
    { cattleNum: '0' },
    { cattleNum: '0' },
    { cattleNum: '0' }
]
</script>

<style scoped lang="scss">
.demo-form-inline .el-input {
  --el-input-width: 220px;
}

.demo-form-inline .el-select {
  --el-select-width: 220px;
}
</style>